<template>
	<view>
		<nav-bar :title="title" :autoBack="true"></nav-bar>
		pdf转word、图片等功能紧急开发中，敬请期待……
	</view>
</template>

<script>
	export default {
		data(){
			return{
				title:'PDF文档'
			}
		},
		mounted() {
			uni.downloadFile({
			  url: 'https://example.com/somefile.pdf',
			  success: function (res) {
			    var filePath = res.tempFilePath;
			    uni.openDocument({
			      filePath: filePath,
			      showMenu: true,
			      success: function (res) {
			        console.log('打开文档成功');
			      }
			    });
			  }
			});
		}
	}
</script>

<style>
</style>